var express = require('express');
var router = express.Router();
var shopController = require('../controllers/shopController')
var passport=require('passport');
/* GET home page. */
//积分商店
router.get('/', function (req, res, next) {
    // res.send('积分商店')
    shopController.getAllShop(req,res)
})
//查看个人积分兑换信息
router.get('/personalexchangge',passport.authenticate('jwt',{session:false}),function(req,res,next){
    shopController.getUserIdShop(req,res)
})

module.exports = router;
